<template>
	<div class="app">
		<div class="login-container">
			<button @click="fenxiang">分享</button>
		</div>
	</div>
</template>

<script>
	export default {
		methods: {
			fenxiang() {
				this.$axios.get('/mail/yaoqingma')
					.then(data => {
						if (data.code === 0) {
							this.$router.push({
								path: '/Add',
								query: {
									yaoqing: data.result.yaoqing,
								}
							})
						} else {
							alert("服务器错误，请联系客服")
						}
					})
			}
		}
	}
</script>

<style>
	.login-container {
		background-image: url(../assets/123456.jpg);
		background-repeat: no-repeat;
		width: 93.75rem;
		height: 700px;
		display: flex;
		flex-flow: row wrap;
		justify-content: space-around;
		align-items: center;
		margin-left: 90px;
	}
</style>
